package com.example.app;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by lianghaiming on 16-1-23.
 */
public class BootReceiver extends BroadcastReceiver{

    static final String ACTION = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {

        if(intent.getAction().equals(ACTION)) {
            Intent startA = new Intent(context, ClientHandle.class);
            context.startService(startA);
        }

    }
}
